import mountNativeElement from './mountNativeElement';
import isFunction from './isFunction';
import mountComponent from './mountComponent';

export default function mountElement(virtualDOM, container, oldDOM) {
    if (isFunction(virtualDOM)) {
        // component
        mountComponent(virtualDOM, container, oldDOM);
    } else {
        // mountNativeElement
        mountNativeElement(virtualDOM, container, oldDOM);
    }
};